//
//  NetBL.m
//  StartFortuneNew
//
//  Created by 邹渊峰 on 14-10-17.
//  Copyright (c) 2014年 niit. All rights reserved.
//

#import "NetBL.h"

static NetBL *instance=nil;
@implementation NetBL

+(NetBL *)sharedNetBL
{
    if (instance==nil)
    {
        instance=[[NetBL alloc]init];
    }
    return instance;
}

-(id)init
{
    if (self=[super init])
    {
        self.dao=[NetDAO sharedNetDAO];
          
    }
    return self;
}

-(void)getDataBL
{
    
        [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(getDataBLsuccess:) name:kNotificationGetDataSuccessDAO object:nil];
    [self.dao getData];
    
}

-(void)getDataBLsuccess:(NSNotification *)n
{
    NSArray *arr=n.object;
    
    [[NSNotificationCenter defaultCenter]postNotificationName:kNotificationGetDataBLSuccessBL object:arr];
    
    [[NSNotificationCenter defaultCenter]removeObserver:self name:kNotificationGetDataSuccessDAO object:nil];
}


@end
